﻿using System;
using System.Xml;

namespace Mehat.San.SanFS
{
	public interface IVirtualMount
	{
		string InternalRoot { get; }
		bool Merge { get; }
		string Name { get; }
		VirtualMountType Type { get; }
		IVirtualMount CreateInstance(XmlNode XmlConfig);
		void Attach();
		void Detach();
		
		void OpenFile(FileHandle Fh);
		void ReleaseFile(FileHandle Fh);
		long ReadFile(FileHandle Fh, byte[] Buffer, long Offset);
		void FlushFile(FileHandle Fh);
		
	}
}
